sched: get rid of cpupool_scheduler_cpumask()
authorDario Faggioli <dario.faggioli@citrix.com>
Wed, 30 Sep 2015 12:45:23 +0000 (14:45 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 30 Sep 2015 12:45:23 +0000 (14:45 +0200)
commit6c9cf46cefcf2cfb920c14e9ac2c53c371366cf2
tree1bdf13f31e0a8f456387483b227707ddfcfcac12
parentea5637968a09a81a64fa5fd73ce49b4ea9789e12
sched: get rid of cpupool_scheduler_cpumask()

and of (almost every) direct use of cpupool_online_cpumask().

In fact, what we really want for the most of the times,
is the set of valid pCPUs of the cpupool a certain domain
is part of. Furthermore, in case it's called with a NULL
pool as argument, cpupool_scheduler_cpumask() does more
harm than good, by returning the bitmask of free pCPUs!

This commit, therefore:
 * gets rid of cpupool_scheduler_cpumask(), in favour of
   cpupool_domain_cpumask(), which makes it more evident
   what we are after, and accommodates some sanity checking;
 * replaces some of the calls to cpupool_online_cpumask()
   with calls to the new functions too.

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Acked-by: Juergen Gross <jgross@suse.com>
Acked-by: Joshua Whitehead <josh.whitehead@dornerworks.com>
Reviewed-by: Meng Xu <mengxu@cis.upenn.edu>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
xen/common/domain.c
xen/common/domctl.c
xen/common/sched_arinc653.c
xen/common/sched_credit.c
xen/common/sched_rt.c
xen/common/schedule.c
xen/include/xen/sched-if.h